package com.cool.modules.cooperate.entity;

import com.cool.core.base.BaseEntity;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.mybatisflex.annotation.Table;
import com.tangzc.mybatisflex.autotable.annotation.ColumnDefine;
import lombok.Data;

import java.util.Date;

@Data
@Table(value = "base_pledge_user", comment = "机构管理-抵押权人代理人")
public class BasePledgeUser extends BaseEntity<BasePledgeUser> {
    @ColumnDefine(comment = "创建用户id")
    private Long createUid;

    @ColumnDefine(comment = "更新人id")
    private Long updateUid;

    @ColumnDefine(comment = "合作方id")
    private Long cooperateId;

    @ColumnDefine(comment = "金融机构id")
    private Long financeId;

    @ColumnDefine(comment = "代理人编号")
    private String userNo;

    @ColumnDefine(comment = "代理人姓名")
    private String linkName;

    @ColumnDefine(comment = "代理人身份证号码")
    private String linkCard;

    @ColumnDefine(comment = "代理人手机号")
    private String linkPhone;

    @ColumnDefine(comment = "0-未开设账号 1-已开设账号")
    private Integer accountStatus;

    @ColumnDefine(comment = "登录账号")
    private String account;

    @ColumnDefine(comment = "账号关联的id")
    private Long accountId;

    @ColumnDefine(comment = "0-禁用 1-启用")
    private Integer status;

    @ColumnDefine(comment = "身份证有效期")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date startTime;

    @ColumnDefine(comment = "身份证有效期")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date endTime;

    @ColumnDefine(comment = "有效期")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date validDate;

    @ColumnDefine(comment = "身份证正面(人面像)")
    private String idCard1;

    @ColumnDefine(comment = "身份证反面(国徽)")
    private String idCard2;

    @ColumnDefine(comment = "现场图片")
    private String sceneUrl;

    @ColumnDefine(comment = "委托书")
    private String entrustUrl;

}
